.class Lcom/instagram/android/fragment/c;
.super Ljava/lang/Object;
.source "AboutFragment.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/instagram/android/fragment/a;


# direct methods
.method constructor <init>(Lcom/instagram/android/fragment/a;)V
    .locals 0
    .parameter

    .prologue
    .line 118
    iput-object p1, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 124
    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/ui/d/b;

    if-nez v0, :cond_1

    .line 158
    :cond_0
    :goto_0
    return-void

    .line 127
    :cond_1
    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/d/b;

    .line 129
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->instagram_on_the_web:I

    if-ne v1, v2, :cond_2

    .line 130
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    const-string v3, "http://www.instagram.com/"

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/a;->a(Landroid/content/Intent;)V

    goto :goto_0

    .line 131
    :cond_2
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->instagram_blog:I

    if-ne v1, v2, :cond_3

    .line 132
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    const-string v3, "http://blog.instagram.com/"

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/a;->a(Landroid/content/Intent;)V

    goto :goto_0

    .line 133
    :cond_3
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->terms_of_service:I

    if-ne v1, v2, :cond_4

    .line 134
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "/legal/terms/"

    invoke-static {v1, v3}, Lcom/instagram/android/d/i/h;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    sget v3, Lcom/facebook/ba;->terms_of_service:I

    invoke-virtual {v2, v3}, Lcom/instagram/android/fragment/a;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v1, v4, v2}, Lcom/instagram/android/activity/SimpleWebViewActivity;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    goto :goto_0

    .line 138
    :cond_4
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->about_libraries:I

    if-ne v1, v2, :cond_5

    .line 139
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "/legal/libraries/android/"

    invoke-static {v1, v3}, Lcom/instagram/android/d/i/h;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    sget v3, Lcom/facebook/ba;->about_libraries:I

    invoke-virtual {v2, v3}, Lcom/instagram/android/fragment/a;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v1, v4, v2}, Lcom/instagram/android/activity/SimpleWebViewActivity;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    goto :goto_0

    .line 143
    :cond_5
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->privacy_policy:I

    if-ne v1, v2, :cond_6

    .line 144
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "/legal/privacy/"

    invoke-static {v1, v3}, Lcom/instagram/android/d/i/h;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    sget v3, Lcom/facebook/ba;->privacy_policy:I

    invoke-virtual {v2, v3}, Lcom/instagram/android/fragment/a;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v1, v4, v2}, Lcom/instagram/android/activity/SimpleWebViewActivity;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    goto/16 :goto_0

    .line 148
    :cond_6
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v0

    sget v1, Lcom/facebook/ba;->about_ads:I

    if-ne v0, v1, :cond_0

    .line 149
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-virtual {v1}, Lcom/instagram/android/fragment/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    const-string v2, "starred_posts"

    invoke-interface {v0, v1, v2}, Lcom/instagram/b/c;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 152
    iget-object v0, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    invoke-virtual {v0}, Lcom/instagram/android/fragment/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "/xwoiynko"

    invoke-static {v1, v3}, Lcom/instagram/android/d/i/h;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/c;->a:Lcom/instagram/android/fragment/a;

    sget v3, Lcom/facebook/ba;->about_ads:I

    invoke-virtual {v2, v3}, Lcom/instagram/android/fragment/a;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v1, v4, v2}, Lcom/instagram/android/activity/SimpleWebViewActivity;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    goto/16 :goto_0
.end method
